#include <stdio.h>

int
main(void)
{
    int first, middle, last;

    printf("Enter the three-digit number:\n");
    scanf("%1d%1d%1d", &last, &middle, &first);

    printf("The reversal is: %d%d%d\n", first, middle, last);
    
    return 0;
}
